package com.wonders.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wonders.dto.Result;
import com.wonders.entity.Follow;
/**
 * 功能描述:关注、取关、共同关注等相关业务服务接口层
 * @Author: yyalin
 * @CreateDate: 2023/8/14 13:17
 */
public interface IFollowService extends IService<Follow> {
    /**
     * 功能描述:关注\取关
     * @MethodName: follow
     * @MethodParam: [followUserId, isFollow]
     * @Return: com.wonders.dto.Result
     * @Author: yyalin
     * @CreateDate: 2023/8/14 16:18
     */
    Result follow(Long followUserId, Boolean isFollow,Long userId);
    /**
     * 功能描述:查询是否关注功能
     * @MethodName: isFollow
     * @MethodParam: [followUserId]
     * @Return: com.wonders.dto.Result
     * @Author: yyalin
     * @CreateDate: 2023/8/14 16:19
     */
    Result isFollow(Long followUserId,Long userId);
    /**
     * 功能描述:共同关注
     * @MethodName: followCommons
     * @MethodParam: [id]
     * @Return: com.wonders.dto.Result
     * @Author: yyalin
     * @CreateDate: 2023/8/14 16:20
     */
    Result followCommons(Long id,Long userId);
}
